package com.bite.lesson4;

import java.util.Scanner;

public class Demo_09 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        MyMax(10,40);
        MyMax(10.5, 48.2,6.9);
    }

    private static void MyMax(int A, int B) {
        int max = A > B ? A : B;
        System.out.println(max);
    }

    private  static void MyMax(double A, double B, double C) {
        double max1 = A > B ? A : B;
        double max2 = max1 > C ? max1 : C;
        System.out.println(max2);
    }


}
